<script lang="ts" setup>
import { computed, inject } from 'vue';

const data: any = inject('data');
const POT = computed(() => data.value?.pc_pub_info_obj?.POT || []);
const PCJ = computed(() => data.value?.pc_pub_info_obj?.PCJ || []);
const pc_house_fund_obj_list = computed(() => data.value?.pc_house_fund_obj_list || []);


</script>
<template>
  <div class="h3 title">（1）欠税记录</div>
  <table>
    <tr>
      <th>编号</th>
      <th>主管税务机关</th>
      <th>欠税总额</th>
      <th>欠税统计日期</th>
    </tr>
    <tr>
      <template v-for="(item, i) in POT" :key="i">
        <td>{{ i + 1 }}</td>
        <td>{{ item.PF01AQ01 }}</td>
        <td>{{ item.PF01AJ01 }}</td>
        <td>{{ item.PF01AR01 }}</td>
      </template>
    </tr>
  </table>
  <div class="h3 title">（2）民事判决记录</div>

  <table>
    <template v-for="(item, i) in PCJ" :key="i">
      <tr>
        <th>编号</th>
        <th>立案法院</th>
        <th>案由</th>
        <th>立案日期</th>
        <th>结案方式</th>
      </tr>
      <tr>
        <td rowspan="3">{{ i + 1 }}</td>
        <td>{{ item.PF02AQ01 }}</td>
        <td>{{ item.PF02AQ02 }}</td>
        <td>{{ item.PF02AR01 }}</td>
        <td>{{ item.PF02AD01 }}</td>
      </tr>
      <tr>
        <th>判决/调解结果</th>
        <th>判决/调解生效日期</th>
        <th>诉讼标的</th>
        <th>诉讼标的金额</th>
      </tr>
      <tr>
        <td>{{ item.PF02AQ03 }}</td>
        <td>{{ item.PF02AR02 }}</td>
        <td>{{ item.PF02AQ04 }}</td>
        <td>{{ item.PF02AJ01 }}</td>
      </tr>
    </template>
  </table>
  <div class="h3 title">（3）住房公积金参缴记录</div>
  <table>
    <tr>
      <th>参缴地</th>
      <th>参缴日期</th>
      <th>初缴月份</th>
      <th>缴至月份</th>
      <th>缴费状态</th>
      <th>月缴存额</th>
      <th>个人缴存比例</th>
      <th>单位缴存比例</th>
      <th>缴费单位</th>
      <th>信息更新日期</th>

    </tr>
    <tr>
      <template v-for="(item, i) in pc_house_fund_obj_list" :key="i">
        <td>{{ item.PF05AQ01 }}</td>
        <td>{{ item.PF05AR01 }}</td>
        <td>{{ item.PF05AR02 }}</td>
        <td>{{ item.PF05AR03 }}</td>
        <td>{{ item.PF05AD01 }}</td>
        <td>{{ item.PF05AJ01 }}</td>
        <td>{{ item.PF05AQ02? item.PF05AQ02+'%':''}}</td>
        <td>{{ item.PF05AQ03?item.PF05AQ03+'%':'' }}</td>
        <td>{{ item.PF05AQ04 }}</td>
        <td>{{ item.PF05AR04 }}</td>
      </template>
    </tr>
  </table>

</template>